var verify_agreement_only_dc_store = JSON.parse('{"CODE":0, "ACTION":"","LEVEL":"T1", "MSG":"","DATA":"","SCRIPTNAME":"verify_agreement_only_dc_store"}');

if (store_type == 2 && active_discount == 1) {
    verify_agreement_only_dc_store.CODE = 2;
    verify_agreement_only_dc_store.ACTION = 'error';
    verify_agreement_only_dc_store.MSG = '只有DC店不可填写补差协议';
}
JSON.stringify(verify_agreement_only_dc_store);